package com.example.malllocationserver.mapper;

import com.example.malllocationserver.entity.History;
import com.example.malllocationserver.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Timestamp;
import java.util.List;

@Mapper
public interface UserMapper {
    List<User> findAll();
    void register(String userId, String userName,String password,String phone,String sex,Timestamp reg_time);
    User login(String userId,String password);
     boolean updatePhone(String userId,String phone);
     boolean updatePassword(String userid,String password);
    User find(String userid);

    List<History> find_history(String userid);
    boolean delete_history(String userid);
    boolean addHistory(String userid, String storename, Timestamp time);
    User getUser(String userid);
    boolean save(String userid,String picture);
}


